﻿using System;
using System.Linq;
using System.Runtime.CompilerServices;
using UnityEngine;

public class TileMap : MonoBehaviour
{
    public bool isEditing;
    public GameObject selectedPrefab;

    public GameObject GetInstance(Vector3 pos)
    {
        <GetInstance>c__AnonStorey72 storey = new <GetInstance>c__AnonStorey72 {
            pos = pos,
            <>f__this = this
        };
        Transform transform = base.transform.GetComponentsInChildren<Transform>().FirstOrDefault<Transform>(new Func<Transform, bool>(storey.<>m__11F));
        return ((transform == null) ? null : transform.gameObject);
    }

    [CompilerGenerated]
    private sealed class <GetInstance>c__AnonStorey72
    {
        internal TileMap <>f__this;
        internal Vector3 pos;

        internal bool <>m__11F(Transform x)
        {
            return ((x != this.<>f__this.transform) && (x.position == this.pos));
        }
    }
}

